const baseHttpUrl = {}

let baseU = ''

if (process.env.NODE_ENV === 'development') {
  baseU = 'http://58.59.18.203:8888/policyapi'
  // iframe的地址
  baseHttpUrl.mofangIframe = ['http://localhost:9528/abc.html']
  // 跳转的地址
  baseHttpUrl.tiaozhuan = 'http://localhost:9528/' // 百日招聘
} else if (process.env.NODE_ENV === 'testing') {
  // 测试环境配置
  baseU = 'http://119.188.2.36:8086/policyapi'
  baseHttpUrl.mofangIframe = ['http://sme.com.cn/#/homepage']
  // 跳转的地址
  // baseHttpUrl.tiaozhuan = 'http://localhost:8081/#/';
} else if (process.env.NODE_ENV === 'production') {
  baseU = 'http://119.188.2.36:8086/policyapi'
  // iframe的地址
  baseHttpUrl.mofangIframe = ['http://sme.com.cn/abc.html']
  // 跳转的地址
  baseHttpUrl.tiaozhuan = 'http://sme.com.cn/#/' // 政策魔方
} else if (process.env.NODE_ENV === 'brzp') {
  baseU = 'http://192.168.0.168:8086'
  // iframe的地址
  baseHttpUrl.mofangIframe = ['http://localhost:8081/#/abc.html']
  // 跳转的地址
  baseHttpUrl.tiaozhuan = 'http://localhost:8081/#/' // 政策魔方
}

// 接口的地址
baseHttpUrl.recomist = baseU + '/policy/search/recomist'
baseHttpUrl.sendCode = baseU + '/sms/sendCodeHW'
baseHttpUrl.infoByToken = baseU + '/user/ent/infoByToken'
baseHttpUrl.plgn = baseU + '/user/login/plgn'
baseHttpUrl.vlgn = baseU + '/user/login/vlgn'
baseHttpUrl.logout = baseU + '/user/login/logout'
baseHttpUrl.forget1 = baseU + '/user/login/forget1'
baseHttpUrl.forget2 = baseU + '/user/login/forget2'
baseHttpUrl.loadchkcode = baseU + '/user/login/loadchkcode'
baseHttpUrl.updatePassword = baseU + '/user/login/updatePassword'

export default baseHttpUrl
